package com.qianfeng.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 映射数据库住院表
 */
public class InHospital {
    private Integer ihId;//编号
    private String ihNurse;//护理人
    private String ihBedno;//病床号
    private Double ihMoney;//缴纳押金
    private String ihInfo;//病情介绍
    private Integer ihStatus;//结算状态：0未结算1已结算
    private Integer ihInfoStatus;//信息状态：1正常0删除
    private Integer rId;//关联病人表主键
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ihTime;//住院时间
    private Date updateTime;//设置当前时间，并且自动更更新时间
    private Registration registration;//关联病人表

    @Override
    public String toString() {
        return "InHospital{" +
                "ihId=" + ihId +
                ", ihNurse='" + ihNurse + '\'' +
                ", ihBedno='" + ihBedno + '\'' +
                ", ihMoney=" + ihMoney +
                ", ihInfo='" + ihInfo + '\'' +
                ", ihStatus=" + ihStatus +
                ", ihInfoStatus=" + ihInfoStatus +
                ", rId=" + rId +
                ", ihTime=" + ihTime +
                ", updateTime=" + updateTime +
                ", registration=" + registration +
                '}';
    }

    public Integer getIhId() {
        return ihId;
    }

    public void setIhId(Integer ihId) {
        this.ihId = ihId;
    }

    public String getIhNurse() {
        return ihNurse;
    }

    public void setIhNurse(String ihNurse) {
        this.ihNurse = ihNurse;
    }

    public String getIhBedno() {
        return ihBedno;
    }

    public void setIhBedno(String ihBedno) {
        this.ihBedno = ihBedno;
    }

    public Double getIhMoney() {
        return ihMoney;
    }

    public void setIhMoney(Double ihMoney) {
        this.ihMoney = ihMoney;
    }

    public String getIhInfo() {
        return ihInfo;
    }

    public void setIhInfo(String ihInfo) {
        this.ihInfo = ihInfo;
    }

    public Integer getIhStatus() {
        return ihStatus;
    }

    public void setIhStatus(Integer ihStatus) {
        this.ihStatus = ihStatus;
    }

    public Integer getIhInfoStatus() {
        return ihInfoStatus;
    }

    public void setIhInfoStatus(Integer ihInfoStatus) {
        this.ihInfoStatus = ihInfoStatus;
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public Date getIhTime() {
        return ihTime;
    }

    public void setIhTime(Date ihTime) {
        this.ihTime = ihTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Registration getRegistration() {
        return registration;
    }

    public void setRegistration(Registration registration) {
        this.registration = registration;
    }

    public InHospital(Integer ihId, String ihNurse, String ihBedno, Double ihMoney, String ihInfo, Integer ihStatus, Integer ihInfoStatus, Integer rId, Date ihTime, Date updateTime, Registration registration) {
        this.ihId = ihId;
        this.ihNurse = ihNurse;
        this.ihBedno = ihBedno;
        this.ihMoney = ihMoney;
        this.ihInfo = ihInfo;
        this.ihStatus = ihStatus;
        this.ihInfoStatus = ihInfoStatus;
        this.rId = rId;
        this.ihTime = ihTime;
        this.updateTime = updateTime;
        this.registration = registration;
    }

    public InHospital() {
    }
}
